import {request} from "@/api";
import {Page} from "@/api/types.ts";
import {ApiLog} from "@/api/api-log/types.ts";

const apiPrefix = '/varian-system/api-log'

export const apiLogApi = {
    page: (params: any) => request.get<Page<ApiLog>>(`${apiPrefix}/page`, {params}),
    detail: (id: string) => request.get<ApiLog>(`${apiPrefix}/${id}`),
    errorHandle: (data: any) => request.put(`${apiPrefix}/error-handle/${data.id}`, {data})
}
